@echo off

set flag=%1
if "%flag%"=="" (
	echo Please select the render mode:
	echo 0: DISABLED
	echo 1: ENABLED_FOR_ALL
	echo 2: DYNAMIC_SWITCH
	echo 3: reset to default mode
	set/p flag=Please enter the order: 
)

hdc shell mount -o remount,rw /

if "%flag%"=="0" (
	hdc shell "echo DISABLED > /etc/unirender.config"
)
if "%flag%"=="1" (
	hdc shell "echo ENABLED_FOR_ALL > /etc/unirender.config"
)
if "%flag%"=="2" (
	hdc shell "echo DYNAMIC_SWITCH > /etc/unirender.config"
)
if "%flag%"=="3" (
	hdc shell "echo > /etc/unirender.config"
)

hdc shell cat /etc/unirender.config
hdc shell reboot
pause